package com.ethink.order.common.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import com.ethink.order.api.info.JkyTradeLogInfo;
import com.ethink.order.common.entity.JkyTradeLog;
import org.apache.ibatis.annotations.Param;

/**
 * 吉客云销售单 Mapper接口
 *
 * @author default
 * @date 2022-11-25
 */
@Mapper
public interface JkyTradeLogMapper extends BaseMapper<JkyTradeLog> {


    /**
     * 根据吉客云订单编号查询详情
     *
     * @param tradeNo
     * @return
     */
    JkyTradeLogInfo getJkyTradeLogByTradeNo(@Param("tradeNo") String tradeNo);

    /**
     * 查询最后吉客云最后修改时间详情
     *
     * @return
     */
    JkyTradeLogInfo lastGmtModifiedJkyTradeLog();

    /**
     * 查询最后吉客云最后发货时间详情
     *
     * @return
     */
    JkyTradeLogInfo lastConsignTimeJkyTradeLog();

    /**
     * 查询TOP1待处理详情
     * @return
     */
    JkyTradeLogInfo topOneProcessingJkyTradeLog();


}